package com.example.activity02;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class OtherActivity extends Activity{
	private TextView myTextView = null;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.other);
		myTextView = (TextView)findViewById(R.id.myTextView);
		Intent intent = getIntent();
		String OperateStrOne = intent.getStringExtra("one");
		String OperateStrTwo = intent.getStringExtra("two");
		int OperateOneInt = Integer.parseInt(OperateStrOne);
		int OperateTwoInt = Integer.parseInt(OperateStrTwo);
		int Result = OperateOneInt * OperateTwoInt;
		myTextView.setText(Result + "");
	}
	
}
